import Cookies from 'js-cookie'

const TokenKey = 'hrsaas-ihrm-token'
// 获取
export function getToken() {
  return Cookies.get(TokenKey)
}
// 存储
export function setToken(token) {
  return Cookies.set(TokenKey, token)
}
// 删除
export function removeToken() {
  return Cookies.remove(TokenKey)
}

const TimeKey = 'hr-timestamp-key'
// 获取
export function getTime() {
  return Cookies.get(TimeKey)
}
// 存储
export function setTime() {
  Cookies.set(TimeKey, Date.now())
}
// 删除
export function removeTime() {
  Cookies.remove(TimeKey)
}

